﻿<controls:ChildWindow x:Class="UI.Web.SL.Demo.SysAdmin.LoginForm"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="420" Height="240" 
           Title="系统登录" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk">
    <Border BorderBrush="#b5b5b5" BorderThickness="1" Width="400" Height="200">
        <Grid x:Name="logGrid" Margin="1">
            <Grid.RowDefinitions>
                <RowDefinition></RowDefinition>
                <RowDefinition Height="30"></RowDefinition>
                <RowDefinition Height="30"></RowDefinition>
                <RowDefinition Height="30"></RowDefinition>
                <RowDefinition Height="30"></RowDefinition>
                <RowDefinition Height="30"></RowDefinition>
                <RowDefinition></RowDefinition>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition Width="80"></ColumnDefinition>
                <ColumnDefinition Width="240"></ColumnDefinition>
                <ColumnDefinition></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <TextBlock VerticalAlignment="Center" Text="用户姓名：" Grid.Row="1" Grid.Column="1"  ></TextBlock>
            <TextBlock VerticalAlignment="Center" Text="用户密码：" Grid.Row="2" Grid.Column="1"></TextBlock>
            <TextBlock VerticalAlignment="Center" Text="登录设置：" Grid.Row="3" Grid.Column="1"></TextBlock>
            <TextBox x:Name="usernameBox" Grid.Column="2" Grid.Row="1" Width="240" VerticalAlignment="Center"  >
            </TextBox>
            <PasswordBox  x:Name="passwordBox"  Grid.Column="2" Grid.Row="2" Width="240" VerticalAlignment="Center"  ></PasswordBox>
            <StackPanel Orientation="Horizontal" Grid.Column="2" Grid.Row="3">
            <CheckBox x:Name="AutoLoginBox" Click="AutoLoginBox_Click"  Content="自动登录" VerticalAlignment="Center"  ></CheckBox>
            <CheckBox x:Name="RememberPassWord"   Content="记住密码" Margin="96 0 0 0" VerticalAlignment="Center"  ></CheckBox>
            </StackPanel>
            <StackPanel Grid.Column="2" Grid.Row="4" Orientation="Horizontal">
                <Button Content="登录" Width="100" Height="26" HorizontalAlignment="Left" Click="Button_Click"></Button>
                <Button Content="取消" Width="100" Height="26" Margin="20,0,0,0" HorizontalAlignment="Left" Click="Button_Click_1"></Button>
            </StackPanel>

            <StackPanel Orientation="Horizontal"  Grid.Column="0" Grid.Row="5" Grid.ColumnSpan="4" VerticalAlignment="Center" HorizontalAlignment="Center">
                <sdk:Label  Content="Version:" />
                <sdk:Label  Content=" Copy Right © All Rights Reserved "/>
                <HyperlinkButton NavigateUri="http://www.SailHero.com/">河北先河</HyperlinkButton>
            </StackPanel>

        </Grid>
    </Border>
</controls:ChildWindow>